<h1></h1>
<div id="tabs">
	<ul>
		<li><a href="#tabs-1">Export Group Information</a></li>
		<li><a href="#tabs-2">Export Student Results</a></li>
	</ul>
<div id="tabs-1">
<div>
	<form action="<?php echo site_url('admin/export_data'); ?>" method="POST">

		<label for="class_id">Export Groups From Class:</label>
		<select name="class_id" id="class_id">
			<option value="">Export All Groups</option>
			<?php foreach ($classes as $class) : ?>
				<option value="<?php echo $class['class_id']; ?>"><?php echo $class['location'] . ' ' . ucfirst($class['day']) . ' ' . $class['start_time']; ?></option>
			<?php endforeach; ?>
		</select>

		<br>

		<input type="hidden" name="export" value="groups">
		
		<input type="submit" value="Export Groups">

	</form>
</div>
</div>
<div id="tabs-2">
<div>
	<form action="<?php echo site_url('admin/export_data'); ?>" method="POST">

		<label for="class_id">Export Student Results From Class:</label>
		<select name="class_id" id="class_id">
			<option value="">Export All Student Results</option>
			<?php foreach ($classes as $class) : ?>
				<option value="<?php echo $class['class_id']; ?>"><?php echo $class['location'] . ' ' . ucfirst($class['day']) . ' ' . $class['start_time']; ?></option>
			<?php endforeach; ?>
		</select>

		<br>

		<input type="hidden" name="export" value="results">
		
		<input type="submit" value="Export Student Results">

	</form>
</div>
</div>
</div>

<div class="clear"></div>
	
</div>
